export const enumQuarter = {
  1: '一',
  2: '二',
  3: '三',
  4: '四',
}

export const isQuarterDisabled = (year, quarter) => {
  const currentYear = new Date().getFullYear()
  const currentMonth = new Date().getMonth()

  return (
    year < 2020 ||
    (year === 2020 && quarter < 2) ||
    (currentYear === year ? quarter * 3 > currentMonth : currentYear < year)
  )
}
